<h:panelGroup xmlns:h='http://java.sun.com/jsf/html'
              xmlns:p='http://primefaces.org/ui'
              xmlns:z='http://savanti.com.bo/ui'
              xmlns:x='http://java.sun.com/jsf/composite/ui/component'
              xmlns:e='http://java.sun.com/jsf/composite/ui/component-entity' styleClass='IMCliente' id='IMCliente'><p:growl/>

<p:tabView style='padding: 0; border: none' styleClass='rmvCorner'>

<p:tab title='Cliente' titleStyleClass='rmvCorner note'>

<z:beanForm bean='#{IMCliente}'>

<x:fieldS b='#{bean}' wT='80' t='Persona' v='#{bean.entity.persona}' x='#{x}' xL='#{x.nombre}'/>

<e:fieldL b='#{bean}' wT='80' p='Canal' t='Canal' tp='Canal Ventas'/>

<e:fieldI b='#{bean}' wT='80' p='Codigo'/>

<e:fieldI b='#{bean}' wT='80' p='Sector' t='Sector'/>

<e:fieldI b='#{bean}' wT='80' p='NIT'/>

<e:fieldI b='#{bean}' wT='80' p='Razon' t='Razon Social'/>

<h:panelGrid columns='2' cellpadding='0' cellspacing='0'>

  <h:panelGrid columns='1' cellpadding='0' cellspacing='0' width='75'><span>Dias Visita</span></h:panelGrid>
  <h:panelGrid columns='8' cellpadding='6' id='dias'>
  <h:outputText value='Lu'/>
  <h:outputText value='Ma'/>
  <h:outputText value='Mi'/>
  <h:outputText value='Ju'/>
  <h:outputText value='Vi'/>
  <h:outputText value='Sa'/>
  <h:outputText value='Do'/>
  <h:outputText value='Frec'/>
  <p:selectBooleanCheckbox value='#{bean.dias[0]}' styleClass='rmvCorner'/>
  <p:selectBooleanCheckbox value='#{bean.dias[1]}' styleClass='rmvCorner'/>
  <p:selectBooleanCheckbox value='#{bean.dias[2]}' styleClass='rmvCorner'/>
  <p:selectBooleanCheckbox value='#{bean.dias[3]}' styleClass='rmvCorner'/>
  <p:selectBooleanCheckbox value='#{bean.dias[4]}' styleClass='rmvCorner'/>
  <p:selectBooleanCheckbox value='#{bean.dias[5]}' styleClass='rmvCorner'/>
  <p:selectBooleanCheckbox value='#{bean.dias[6]}' styleClass='rmvCorner'/>
  <p:inputText value='#{bean.entity.frecuencia}' styleClass='xIn' style='width:20px' title='dias'/>
  </h:panelGrid>

</h:panelGrid>

</z:beanForm>


<z:beanTable bean='#{IMCliente}' rows='12' process='dias'>

<z:columnT t='Canal'  v='#{x.canal.codigo} - #{x.canal.nombre}'/>

<z:columnT t='Sector' v='#{x.sector}' w='65px'/>

<z:columnT t='Nombre' v='#{x.persona.nombre}'/>

<z:columnT t='NIT'    v='#{x.nit}'/>

<z:columnT t='Razon'  v='#{x.razon}'/>

<z:columnT t='Dias'   v='#{x.visita}' w='45px'/>

<z:columnN t='Frec'   v='#{x.frecuencia}' round='0' w='45px'/>

</z:beanTable>

</p:tab>


<p:tab title='SAP' titleStyleClass='rmvCorner note'/>

</p:tabView>

</h:panelGroup>      